

import request from '@/router/axios'

export function merchantList(query) {
  return request({
    url: '/operate/merchant/page',
    method: 'get',
    params: query
  })
}

export function addObj(obj) {
  return request({
    url: '/operate/merchant',
    method: 'post',
    data: obj
  })
}

export function getObj(id) {
  return request({
    url: '/operate/merchant/' + id,
    method: 'get'
  })
}

export function delObj(id) {
  return request({
    url: '/operate/merchant/' + id,
    method: 'delete'
  })
}

export function putObj(obj) {
  return request({
    url: '/operate/merchant',
    method: 'put',
    data: obj
  })
}


export function merList(query) {
    return request({
      url: '/operate/merchantchangelog/page',
      method: 'get',
      params: query
    })
  }
  

  export function rechargeList(query) {
    return request({
      url: '/operate/merchantrechargelog/page',
      method: 'get',
      params: query
    })
  }

  
  export function addRechargeList(obj) {
    return request({
      url: '/operate/merchantrechargelog',
      method: 'post',
      data: obj
    })
  }
